package com.ybkj.chat.module.friend_center.activity;

import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.ybkj.chat.R;
import com.ybkj.chat.base.BaseMvpActivity;
import com.ybkj.chat.ui.adapter.ManagerAdapter;
import com.ybkj.chat.ui.view.recyclerview.DividerItemDecoration;
import com.ybkj.chat.ui.view.recyclerview.XRecyclerView;
import com.ybkj.chat.utils.ResourcesUtil;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * 管理员8.57
 */
public class MangerActivity extends BaseMvpActivity {

    @BindView(R.id.group_owner_icon)
    ImageView groupOwnerIcon;
    @BindView(R.id.group_owner_name)
    TextView groupOwnerName;
    @BindView(R.id.tv_manger)
    TextView tvManger;
    @BindView(R.id.xrc_manager)
    XRecyclerView xrcManager;
    @BindView(R.id.iv_addmanager)
    ImageView ivAddmanager;
    @BindView(R.id.tv_addmanager)
    TextView tvAddmanager;
    @BindView(R.id.ll_addmanager)
    LinearLayout llAddmanager;

    private ManagerAdapter mManagerAdapter;

    @Override
    protected void injectPresenter() {

    }

    @Override
    protected void initTitle() {
        setTitleText("管理员");
        setRightText("保存");
        setRightTextColor(R.color.color_dfd);
        setRightTextVisible(true);
    }


    @Override
    protected int getLayoutId() {
        return R.layout.activity_manger;
    }

    @Override
    protected void initView() {
        initRecycle();
    }

    private void initRecycle() {
        xrcManager.addItemDecoration(new DividerItemDecoration(mContext, DividerItemDecoration.VERTICAL_LIST, 1,
                ResourcesUtil.getColor(R.color.activity_background)));
        mManagerAdapter = new ManagerAdapter(mContext);
        mManagerAdapter.addData("1");
        mManagerAdapter.addData("1");
        mManagerAdapter.addData("1");
        mManagerAdapter.addData("1");
        mManagerAdapter.addData("1");
        xrcManager.setAdapter(mManagerAdapter);
    }

    @Override
    protected void initData() {

    }


    @OnClick({R.id.iv_addmanager, R.id.ll_addmanager})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.iv_addmanager:
                break;
            case R.id.ll_addmanager:
                break;
        }
    }
}
